namespace DotNetNuke.UI.Utilities
{
    using Microsoft.VisualBasic;
    using System;
    using System.Collections;

    /// -----------------------------------------------------------------------------
    /// Project	 : DotNetNuke
    /// Class	 : ClientAPIPostBackEventArgs
    /// 
    /// -----------------------------------------------------------------------------
    /// <summary>
    /// Event arguments passed to a delegate associated to a client postback event 
    /// </summary>
    /// <remarks>
    /// </remarks>
    /// <history>
    /// [Jon Henning]	9/15/2004	Created
    /// </history>
    /// -----------------------------------------------------------------------------
    public class ClientAPIPostBackEventArgs
    {
        public Hashtable EventArguments;
        public string EventName;

        public ClientAPIPostBackEventArgs()
        {
            this.EventArguments = new Hashtable();
        }

        public ClientAPIPostBackEventArgs(string strEventArgument)
        {
            this.EventArguments = new Hashtable();
            string[] aryArgs = Strings.Split(strEventArgument, ClientAPI.COLUMN_DELIMITER, -1, CompareMethod.Binary);
            if (aryArgs.Length > 0)
            {
                this.EventName = aryArgs[0];
            }
            int refIntHelperL0 = aryArgs.Length - 1;
            for (int i = 1; i <= refIntHelperL0; i += 2)
            {
                this.EventArguments.Add(aryArgs[i], aryArgs[i + 1]);
            }
        }
    }
}

